package org.zbclan.bf2.rcon.home.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class GameModeListReadyEvent extends
		GwtEvent<GameModeListReadyEventHandler> {

	public static Type<GameModeListReadyEventHandler> TYPE = new Type<GameModeListReadyEventHandler>();

	private String[] sizes;

	public GameModeListReadyEvent(String[] sizes) {
		this.sizes = sizes;
	}

	@Override
	protected void dispatch(GameModeListReadyEventHandler handler) {
		handler.onGameModeListReady(sizes);
	}

	@Override
	public Type<GameModeListReadyEventHandler> getAssociatedType() {
		return TYPE;
	}

	public String[] getSizes() {
		return sizes;
	}

}
